#!/bin/bash

# 设置变量
IMAGE_NAME="admission-webhook"
IMAGE_TAG="v1.0"
REGISTRY="your-registry"  # 替换为您的镜像仓库地址

# 构建镜像
docker build -t ${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG} .

# 推送镜像
#docker push ${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}